/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.core;

import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for Office.Permission*/
public class Permission extends JavaScriptObject {

	protected Permission() { }
	public native final Object getApplication()/*-{
		return this.Application;
	}-*/;

	public native final int getCreator()/*-{
		return this.Creator;
	}-*/;

	public native final UserPermission getItem( Object index)/*-{
		return this.Item( index);
	}-*/;

	public native final int getCount()/*-{
		return this.Count;
	}-*/;

	public native final boolean getEnableTrustedBrowser()/*-{
		return this.EnableTrustedBrowser;
	}-*/;

	public native final void setEnableTrustedBrowser(boolean value)/*-{
		this.EnableTrustedBrowser = value;
	}-*/;

	public native final UserPermission add(String userId,  Object permission,  Object expirationDate)/*-{
		return this.Add( userId, permission, expirationDate);
	}-*/;

	public native final void applyPolicy(String fileName)/*-{
		this.ApplyPolicy( fileName);
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final void removeAll()/*-{
		this.RemoveAll( );
	}-*/;

	public native final boolean getEnabled()/*-{
		return this.Enabled;
	}-*/;

	public native final void setEnabled(boolean value)/*-{
		this.Enabled = value;
	}-*/;

	public native final String getRequestPermissionURL()/*-{
		return this.RequestPermissionURL;
	}-*/;

	public native final void setRequestPermissionURL(String value)/*-{
		this.RequestPermissionURL = value;
	}-*/;

	public native final String getPolicyName()/*-{
		return this.PolicyName;
	}-*/;

	public native final String getPolicyDescription()/*-{
		return this.PolicyDescription;
	}-*/;

	public native final boolean getStoreLicenses()/*-{
		return this.StoreLicenses;
	}-*/;

	public native final void setStoreLicenses(boolean value)/*-{
		this.StoreLicenses = value;
	}-*/;

	public native final String getDocumentAuthor()/*-{
		return this.DocumentAuthor;
	}-*/;

	public native final void setDocumentAuthor(String value)/*-{
		this.DocumentAuthor = value;
	}-*/;

	public native final boolean getPermissionFromPolicy()/*-{
		return this.PermissionFromPolicy;
	}-*/;

	public native final JavaScriptObject get_NewEnum()/*-{
		return this._NewEnum;
	}-*/;

}
